package com.woniu.cinema.domain;

import com.woniu.common.annotation.Excel;
import com.woniu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 电影图片对象 tb_movie_image
 * 
 * @author yy
 * @date 2021-04-16
 */
public class MovieImage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 电影id */
    @Excel(name = "电影id")
    private Long movieId;

    /** 影片图片文件名称 */
    @Excel(name = "影片图片文件名称")
    private String movieImg;

    /** 类型：1-影片封面大图 2-影片详情的第一张图片 3-影片详情页的小图 */
    @Excel(name = "类型：1-影片封面大图 2-影片详情的第一张图片 3-影片详情页的小图")
    private Long type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMovieId(Long movieId) 
    {
        this.movieId = movieId;
    }

    public Long getMovieId() 
    {
        return movieId;
    }
    public void setMovieImg(String movieImg) 
    {
        this.movieImg = movieImg;
    }

    public String getMovieImg() 
    {
        return movieImg;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("movieId", getMovieId())
            .append("movieImg", getMovieImg())
            .append("type", getType())
            .toString();
    }
}
